
let a = ''
let id = ''
let api = ''
let socket = ''
let www = ''
let edu = ''
let account = ''

let host = location.host
switch (host) {
    case 'dash.fjfuyu.net':
        account = 'https://account.fjfuyu.net'
        a = 'https://oauth.fjfuyu.net'
        api = 'https://api.xueerqin.net'
        id = 'fuyu_luomi_SC'
        socket = 'wss://websocket.xueerqin.net'
        www = 'https://dash.fjfuyu.net'
        edu = 'https://edu.fjfuyu.net'
        break

    case 'stag.dash.fjfuyu.net':
        account = 'https://stag.account.fjfuyu.net'
        a = 'https://stag.oauth.fjfuyu.net'
        api = 'https://s-api.xueerqin.net'
        id = 'fuyu_luomi_SC'
        socket = 'wss://s-websocket.xueerqin.net'
        www = 'https://stag.dash.fjfuyu.net'
        edu = 'https://stag.edu.fjfuyu.net'
        break

    default:
        account = 'https://test.account.fjfuyu.net'
        a = 'https://test.oauth.fjfuyu.net'
        api = 'https://t-api.xueerqin.net'
        id = 'fuyu_luomi_SC'
        socket = 'wss://t-websocket.xueerqin.net'
        www = 'https://test.dash.fjfuyu.net'
        edu = 'https://test.edu.fjfuyu.net'
}

export const accountUrl = account
export const oauthUrl = a
export const eduUrl = edu
export const wwwUrl = www
export const clientId = 'fuyu_luomi'
export const clientSecret = 'fjfy1q2w3E*'

export const apiUrl = api
export const socketUrl = socket

export const env = process.env.NODE_ENV

export const refreshTime = 60000

